class InvitationMailerJob < Struct.new(:inviter_id, :invitee_id, :project_id)
  def perform
    inviter = User.find inviter_id
    invitee = User.find invitee_id
    project = Project.find project_id
    
    UserMailer.deliver_invitation_email(inviter, invitee, project)
  end
end